package com.tommy.producer.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.function.Function;


@Configuration
public class ProducerConfig {

    @Bean
    public Function<String,String> receiveMessage(){
        return message -> {
            System.out.println("consumer receive msg "  + message);
            return message;
        };
    }
}
